package edu.algorithm.knn.parallel;

public abstract class DataSupport {
	
	private int label;
	

	public DataSupport(int label){
		this.label = label;
	}
	
	public void setLabel(int label){
		this.label = label;
	}
	
	public int getLabel(){
		return label;
	}

	@Override
	public String toString() {
		return "DataSupport [label=" + label + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + label;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DataSupport other = (DataSupport) obj;
		if (label != other.label)
			return false;
		return true;
	}
	
	
	

}
